package cn.wwk.canal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * @TableName unit
 */
@TableName(value ="unit")
@Data
public class Unit implements Serializable {
    /**
     * 单位id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 单位名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 单位地址 对应location表
     */
    @TableField(value = "lid")
    private Integer lid;

    /**
     * 单位负责人
     */
    @TableField(value = "uid")
    private Integer uid;

    /**
     * 单位状态 0正常营业 1阳性涉及单位
     */
    @TableField(value = "status")
    private String status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}